import wmi
comp = wmi.WMI()
for i in comp.Win32_ComputerSystem():
    print(i.TotalPhysicalMemory, 'bytes of physical memory')
for os in comp.Win32_OperatingSystem():
    pass
Get memory usage of computer in Windows with Python