Here is a C # source code message for an example of how to view a list of processes and check files locked by each process.
How to find out which process blocked a file using C # .
The next step is to use this functionality in the service on each machine, so that the process can send a request for a specific file name, and then get an answer about whether the process is blocked on this computer.
The data may include the process name, user ID, and other information available from the process list.
This approach works more, but what it does is to provide a way to access information without requiring file-blocking applications to do something special.
On the other hand, if the files that interest you are under your control, and you can determine access to files, this is probably too large.
source share