EDIT: Added windows 10
Here is a list of WMI filters for Operating Systems. You can follow instructions here to create them.
Windows 2000
SELECT version FROM Win32_OperatingSystem WHERE Version LIKE "5.0%"
Windows XP 32 bit
SELECT version FROM Win32_OperatingSystem WHERE Version LIKE "5.1%" and ProductType = "1"
Windows XP 64 bit
SELECT version FROM Win32_OperatingSystem WHERE Version LIKE "5.1%" and ProductType = "1"
Server 2003 32 bit
SELECT version FROM Win32_OperatingSystem WHERE Version LIKE "5.1%" and NOT ProductType = "1"
Server 2003 64 bit
SELECT version FROM Win32_OperatingSystem WHERE Version LIKE "5.1%" and NOT ProductType = "1" AND NOT OSArchitecture = "64-bit"
Windows Vista 32bit
SELECT version FROM Win32_OperatingSystem WHERE Version LIKE "6.0%" and ProductType = "1" AND NOT OSArchitecture = "64-bit"
Windows Vista 64bit
SELECT version FROM Win32_OperatingSystem WHERE Version LIKE "6.0%" and ProductType = "1" AND OSArchitecture = "64-bit"
Server 2008 32bit
SELECT version FROM Win32_OperatingSystem WHERE Version LIKE "6.0%" and NOT ProductType = "1" AND NOT OSArchitecture = "64-bit"
Server 2008 64bit
SELECT version FROM Win32_OperatingSystem WHERE Version LIKE "6.0%" and NOT ProductType = "1" AND OSArchitecture = "64-bit"
Windows 7 32bit
SELECT version FROM Win32_OperatingSystem WHERE Version LIKE "6.1%" and ProductType = "1" AND NOT OSArchitecture = "64-bit"
Windows 7 64bit
SELECT version FROM Win32_OperatingSystem WHERE Version LIKE "6.1%" and ProductType = "1" AND OSArchitecture = "64-bit"
Server 2008 R2
SELECT version FROM Win32_OperatingSystem WHERE Version LIKE "6.1%" and NOT ProductType = "1"
Windows 8 32 bitSELECT version FROM Win32_OperatingSystem WHERE Version LIKE "6.2%" and ProductType = "1" AND NOT OSArchitecture = "64-bit"
Windows 8 64 bit
SELECT version FROM Win32_OperatingSystem WHERE Version LIKE "6.2%" and ProductType = "1" AND OSArchitecture = "64-bit"
Server 2012
SELECT version FROM Win32_OperatingSystem WHERE Version LIKE "6.2%" and NOT ProductType = "1"
Windows 8.1 32 bit
SELECT version FROM Win32_OperatingSystem WHERE Version LIKE "6.3%" and ProductType = "1" AND NOT OSArchitecture = "64-bit"
Windows 8.1 64 bit
SELECT version FROM Win32_OperatingSystem WHERE Version LIKE "6.3%" and ProductType = "1" AND OSArchitecture = "64-bit"
Server 2012 R2
SELECT version FROM Win32_OperatingSystem WHERE Version LIKE "6.3%" and NOT ProductType = "1"
Windows 10
SELECT version FROM Win32_OperatingSystem WHERE Version LIKE "10.%" and ProductType = "1"
Reference:
http://msdn.microsoft.com/en-us/library/aa394239(v=vs.85).aspx
http://technet.microsoft.com/en-us/library/jj899801.aspx