pixelDepth

Returns the bit depth of the screen.

MDN Reference