If you need to determine the Username used to map a network drive this is the command you must use at command prompt:
wmic netuse where LocalName="Z:" get UserName /value