import string
from ctypes import windll
def get_drives():
  drives = []
  bitmask = windll.kernel32.GetLogicalDrives()
  for letter in string.ascii_uppercase:
	  if bitmask & 1:
		  drives.append(letter)
	  bitmask >>= 1
  return drives
    
print get_drives()
