OpenGL version

How can I know what version of OpenGL is installed in a SGI workstation?..

I would like work with the version 1.2.

call glGetString with GL_VERSION has a parameter. this will return a string containing the version of your opengl implementation.