It's really pretty simple. There are three variables that hold this information:
ScriptEngine - name of the scripting language
ScriptEngineMajorVersion - main version number of that language
ScriptEngineMinorVersion - update version of that language
So let's say you write a little ASP test script and all it has in it (besides the HTML and BODY and such) is:
That will then kick out for you information such as:
Since different versions of scripting languages can support different functions, it's always important to know what you are working with!