How to get mobile device name during execution

Hi,

I am trying to execute one script in desktop web browsers and in mobile browsers and I would like to know how to get the name of the device that is connected over USB to the desktop so that I can handle script accordingly.

Thank you
Arun