Determining windows version from Dos?

I want to reliably determine what version of windows is installed?

If possible, I want to do this without actually starting windows?
Can this be done?

I am using Turbo Pascal 7.0 and have access to the
units "Dos" and "WinDos".

Any help will be much appreciated.


          ___!___            Geoff Keech
    ________(*)________      e-mail:
          o/   \o            Melbourne PC User Group, Australia.