The id read-only property of the Gamepad interface returns a string containing some information about the controller.
id
MDN Reference