title: Python check windows server version
body: <p>I need to log the current windows version in my python application for reporting purposes, but the built in functions I've found so far cant tell the difference between Windows client and server versions:</p>
  
  <pre><code>os.sys.getwindowsversion()
  (6, 0, 6002, 2, 'Service Pack 2')
  platform.release()
  'Vista'
  platform.win32_ver()
  ('Vista', '6.0.6002', 'SP2', 'Multiprocessor Free')
  </code></pre>
  
  <p>These functions return the same values on Windows Vista and Windows Server 2008 (Since they share the same version number).</p>
  
  <p>Is there any way to get the correct windows version?</p>