给定一条路径,我怎样才能找到它的主人?

Given a path, how can i find out its host?

如何实现这个功能:

GetHost("C:\MyFolder"); //Local
GetHost("D:\MyFolder"); //Local
GetHost("\FileServer1\MyFolder"); //FileServer1
GetHost("Y:\MyFolder"); //FileServer1
GetHost("\LocalSharedFolder\MyOtherFolder"); //Local
GetHost("\SpecialSharedFolder\YetAnotherFolder"); //FileServer2

编辑1:
到目前为止,我已经尝试过玩杂耍 DirectoryInfo, DriveInfo, ManagementClass

GetDriveType can tell me if the disk is local or not in case of "Y://". WNetGetConnection 可以为我指出它的网络路径,在 \LocaSharedFolder 的情况下,我可以在那里提取它的主机名...