Get data phone when connect beacon

I want make a list of the connect devices in my beacon, can I do this?
I don’t want use internet, only beacons, for example:

person come and stay near beacon
beacon detect…
id phone register in other app central

Beacon can send data, for example only id phone?

Thank you!