You'd have to go from a protocol basis. For example, nfsd and smbd handle their own locking and file manipulation(this is why you should never share the same files over nfsd and smbd as corruption could occur in some circumstances). If those daemons don't support listing the files then this isn't possible in FreeNAS. I'd look up the websites for the protocols you use and see if they have any way to list open files.