filename = ["filename_1", "filename_2", "filename_3"] # provide filenames in this list

import os
from subprocess import PIPE, Popen
import ctypes

class disable_file_system_redirection:
    _disable = ctypes.windll.kernel32.Wow64DisableWow64FsRedirection
    _revert = ctypes.windll.kernel32.Wow64RevertWow64FsRedirection
    def __enter__(self):
        self.old_value = ctypes.c_long()
        self.success = self._disable(ctypes.byref(self.old_value))
    def __exit__(self, type, value, traceback):
        if self.success:
            self._revert(self.old_value)
            
def ecmd(command):
    with disable_file_system_redirection():
        obj = Popen(command, shell = True, stdout = PIPE, stderr = PIPE)
    out, err = obj.communicate()
    ret=obj.returncode
    return ret,out,err

with disable_file_system_redirection():
    disks = os.popen('wmic logicaldisk get name | findstr /v "Name"').read().strip().split()

for disk in disks:
    for fn in filename:
        ret,out,err = ecmd(r'Where /R %s\ "%s"'%(disk,fn))
        if ret==0:
            if out:
                filels = out.strip().splitlines()
                for FilePath in filels:
                    print('successfully found the file "%s" in the disk "%s" - %s'%(fn, disk, FilePath))
            else:
                print('could not find any file with the given filename "%s" in the disk "%s"'%(fn, disk))
        else:
            print('could not find any file with the given filename "%s" in the disk "%s"'%(fn, disk))
            print("An error occured: %s"%(err))