Check opengles version in android?

I am making a game and I want to do sth like this
const char *version = (const char *) glGetString(GL_VERSION);
if (strstr(version, "OpenGL ES 2.")) {
// do something
} else {
// do others}
In ue4 i found this, SP_OPENGL_PCES2 is right?
enum EShaderPlatform
{
SP_PCD3D_SM5 = 0,
SP_OPENGL_SM4 = 1,
SP_PS4 = 2,
/** Used when running in Feature Level ES2 in OpenGL. */
SP_OPENGL_PCES2 = 3,

}