def testDrive(currentLetter):
    """
    Tests a given drive letter to see if the drive is question is ready for 
    access. This is to handle things like floppy drives and USB card readers
    which have to have physical media inserted in order to be accessed.
    Returns true if the drive is ready, false if not.
    """
returnValue = False
oldError = win32api.SetErrorMode(1)
try:
    freeSpace = win32file.GetDiskFreeSpaceEx(letter)
except:
    returnValue = False
else:
    returnValue = True
win32api.SetErrorMode(oldError)
return returnValue
How do I check if a disk is in a drive using python?