Issuing *any* GL command without a context results in undefined behavior:
"Issuing
GL commands when the program is not connected to a context results in undefined
behavior." (ES 3.0.4 specification, p5, sec 2.1)
Some ES implementations may execute commands without a context, but others may not, or may crash, or may return junk data.
The ES version is specific to a context-- an implementation may be capable of generating both ES2 and ES3.0 contexts, for example, so querying the version needs to be done from an already-created context. If what you're trying to find out is what versions of ES a given implementation is able to support, you'll want to check the attributes of the OpenGL ES config you'll use to create the context for EGL_OPENGL_ES2_BIT or EGL_OPENGL_ES3_BIT. (Or EGL_OPENGL_ES_BIT, if you're looking for ES 1.x, but ANGLE in particular does not currently support ES 1.x.)