To get the version of cmd, the interpreter, you can use the dynamic variable %CMDEXTVERSION%.
echo %CMDEXTVERSION%
2