Can anyone able to give me a script that i will be able to grab a file version of an specific file from multiple remote machines.

I have a list of machines in Txt file ... i want the script to read the list..
and generate a new file that have the Machine names with File version.

eg of the file...
c$\Program Files\Java\jre6\bin\javaw.exe