Information about vertex attributes can be retrieved with the OGL function glGetProgram and the parameters GL_ACTIVE_ATTRIBUTES and GL_ACTIVE_ATTRIBUTE_MAX_LENGTH.
The location of an active shader attribute can be determined by the OGL function glGetAttribLocation, by the index of the attribute.
G...