$ lspci -h
gives out available options for listing PCI devices.
$ lspci -nn
shows up both textual and numeric ID's.
There is a similar command for USB devices:
$ lsusb -h
For the same purposes in Windows there is a nice program devcon.exe - it can be downloaded from http://support.microsoft.com/kb/311272.
For instance, command
> devcon findall PCI*
lists all PCI devices. The following command shows up all PCI devices with assigned system resources:
> devcon resources PCI*