class OSVERSIONINFOEXW(ctypes.Structure):
    _fields_ = [('dwOSVersionInfoSize', ctypes.c_ulong), ('dwMajorVersion',
        ctypes.c_ulong), ('dwMinorVersion', ctypes.c_ulong), (
        'dwBuildNumber', ctypes.c_ulong), ('dwPlatformId', ctypes.c_ulong),
        ('szCSDVersion', ctypes.c_wchar * 128), ('wServicePackMajor',
        ctypes.c_ushort), ('wServicePackMinor', ctypes.c_ushort), (
        'wSuiteMask', ctypes.c_ushort), ('wProductType', ctypes.c_byte), (
        'wReserved', ctypes.c_byte)]
Обнаружить Windows 8.1 в Python?