There are several non-windows and non-command solutions which you can use with your problem. Here are few ideas what I though:
Boot.ini
Try reading boot.ini from Windows boot-partion (i.e. C:\boot.ini) text-file. This (usually) has a default boot information if it has not been manually changed. You can read the text file and do RegEx to find out version.
For example, my boot.ini has "Microsoft Windows XP Professional" part which can be easily parsed with any Regular Expression.
Check file system structure
You may get some clue about the general version of the Windows by looking for directory structure it uses: Windows XP - family uses C:\Documents and Settings kind of directory
structure (language dependent) as other later versions use different kind of directories.
This one is not a good solution, but it is one solution.
cmd.exe
For this one I'm not completely sure, but I think I remember that Windows' command prompt binary file (cmd.exe) has a version stored into it. By reading binary file and it's resources, could help determing correct version.
Still, of all these solutions, I would suggest you to try reading boot.ini. It is user customizable but very rarely changed by a regular users.