I'm struggling to think of any situation where Moodle (should) detects hardware devices.
Can you (always please!) tell us which version of Moodle and what operating system you are running it on?
What *exactly* is your problem? What isn't working that you think should and what error messages are you seeing, if any?