Python bekommt den gesamten GPU -Speicher
import os
print("GPU Dedicated Memory:", int(os.popen("wmic path win32_VideoController get AdapterRAM").read().split("\n\n")[1]) / 1000000000)
# It's in GB if you wish for something else chnage the number you divide by at the end.
# Runs The wmic command in command line and splits it to get the value.
# Works With My Radeon XFX 570
Ugly Unicorn