You can use our FindOpenFile module to locate locked files with PowerShell.

Install-Module FindOpenFile
Find-OpenFile -FilePath C:\myFile.txt