Add gs_device_type function

This allows a programatic way of determining the type of graphics module
currently active.