no. not on per pixel basis. you can detect pixel depth for the whole screen and the background colour of elements, but not actual pixels. not using straight JS anyway. maybe you can with JScript/ActiveX, but I'm really not aware of any obvious controls you can use to get such finite control.
*keep it simple (TM)