locate-file in group:%

Returns the frame that is editing or viewing a particular file.