If you know the location of the pixel, call Winapi GetPixel.
If you want to find a certain pixel on the screen:
- Take screenshot, store it in a bitmap object.
- Use Lockbits on that bitmap.
- Run through the byte array using unsafe code and compare the colors...
is a good tutorial on Lockbits.