On Windows XP and later you can view OS device identifiers for a given hardware component in Device Manager; those often include hardware-reported device identifiers, like PCI vendor/product ID pairs.
Is this possible to look up the latter in Windows ME? I didn't find it.
Also see this image: screenshot of hardware IDs