The manufacturer of a device sets a unique ID for it. This ID is a string that your Operating System uses to match the device to its package. So, if a device package declares that it can work with ...
You can find a Mac's serial number through the About This Mac menu, by locating the number on the physical device, or online.