First of all, please read the following (so you are prepared if your mapped drive scenario causes problems):
http://www.lindersoft.com/forums/showthread.php?t=31410
Unfortunately, I don't know any simple way to check if a remote drive is located on the local machine.
Friedrich