Get Fing. You install it then it runs from Terminal. sudo Fing

If you have an iPhone it works even easier that on the Mac