I wrote some code a while back to find and detect other devices on your network, although it no longer seems to work on safari: http://joevennix.com/lan-js/examples/dashboard.html
The fingerprinting db it used can be found in the repo: https://github.com/joevennix/lan-js/blob/master/src/db.js