Run the hardware-detect program:
hardware-detect --human
To use hardware in a project:
import hardware