in reply to Re^2: file remote or local
in thread file remote or local

And you can get a list of mountpoints from /etc/mtab, figure out their type from the 3rd column, stat the filesystem root for the ones you determine are remote, then see if the device number from the above stat call is one of the remote ones.