To determine the color and pixel depths of the screen:

var pixelDepth = window.screen.pixelDepth,
    colorDepth = window.screen.colorDepth;