As devnull commented, surround the input variable ssd
with *
:
glob.glob('C:\\Program Files\\*{}*'.format(ssd))
Side Note: You should escape backslashes as I did in above code, or use raw string literal.
glob.glob(r'C:\Program Files\*{}*'.format(ssd))