In our company, we have many machines (running windows/unix) connected
by LAN.I would like to have the list of all files from each machine
that have been shared. (In windows you can share folders so that they
are visible to other machines.)

I read that rsync can be used "for listing files on a remote machine."
I want only the filenames, actual data inside these files is not

Could someone please explain me how I can do this using rsync?

Also, it is required that machines which I am trying to scan have
rsync or some sort of client installed?