The simplest way is trying to create the graphics device within a try - catch block. If it fails to create, it will throw an error you then can send the user (telling them that their desktop depth is not supported and that they must start the game in fullscreen because of that)