Would a scanner be under hardware or software?
A scanner is a hardware device. The program you use to operate it, on the other hand, is considered software.
Each scanner manufacturer (such as HP, Brother, etc.) usually has it´s own program to use the scanner.
Hope I helped you distinguish the hardware and software sides of the scanner!