On this page:

15 Additional utility procedures

These procedures can be used to check the OpenGL version and supported extensions. Note that these, too, should only be called when an OpenGL context is active!

(gl-version)  (listof exact-integer?)
Returns the OpenGL version, as a list of exact integers. For example, version 3.1.2 would return a list (3 1 2).

(gl-extensions)  set-eq?
Returns the supported OpenGL extensions, as a set of symbols.

(gl-has-extension? extension)  boolean?
  extension : symbol?
Checks whether the given extension is supported.

(gl-version-at-least? version)  boolean?
  version : (listof exact-integer?)
Checks if the OpenGL version is at least the given version.