Hardware refers to the physical devices connected to a computer, including external components like keyboards and internal components like motherboards. Software is a non-tangible set of programs that instructs the computer on its functions, divided into system software that manages overall operations and application software designed for specific user tasks. System software typically includes the operating system and device drivers, and it is usually pre-installed on computers.