title: Get windows version in Cygwin
body: <p>How can I get the windows version I am currently running under Cygwin?</p>
  
  <p>I am maintaining a automatic build script that is running on Mac, Windows and Linux distributions and I need to be able to detect what Windows version it is currently running under.</p>
  
  <p>Preferably I could have it return the standard Windows release name but some kind of code that I can separate from the other ones would also be great.</p>
  
  <p>What I want to know is if I am running 7, XP, Server 2008 and so on.</p>
  
  <p>Help, Ideas?</p>