How to remotely connect to a laptop's local users directory? besides opening ssh-  is there a way to connect and read local users defined in a machine?

Edit - further info.

My goal is to actually run an analysis on my network - to find out which local accounts reside in which machine.
the thing is that not all machines have ssh opened.

All the machines are part of my domain, and i have an administrative user and password in order to connect to the machines.

Thanks
You can get a list of all macOS-accounts with

 dscl . list /Users | grep -v '_'


daemon, nobody, and root are system-defined accounts. So here you have the list of all local users.