Is there a way to capture users drive mappings including the drive letter and send the output to a .txt or .ini file?

Thanks