how to read rendered pixels array ?

Hi all,

In my road editor, i amusing custom depth in material editor. I managed to make the overlapping roads area pink (the green road is the previewed one). Is this possible to access the pixels render buffer array to check if at least one pixel is pink ? Then if my c++ function returns false, i will allow the road drawing