import os
soft_list = []
#64-bit
for lf in os.listdir('C:\\Program Files'):
if not os.path.file(lf):
soft_list.append(lf)
#32-bit
for lf in os.listdir('C:\\Program Files (x86)'):
if not os.path.file(lf):
soft_list.append(lf)
for sl in soft_list:
print(sl)