The power supply and the Hard drive are the two components that makes loud whining noise when a problem is detected.
Explanation:
Computers can undergo what's called “coil whine,” which is a high-pitched noise that originates from the computer.
coil whine is an unacceptable noise emitted by an electronic component vibrating as power runs through an electrical cable.
It's easy to infer that the noise is an indication of influential computer malfunctioning or that something is cut, disconnected, or about to collapse.
It is normally caused by an electrical current passing through a power-regulating component like a transformer or inductor, inducing its electrical wiring to vibrate at a shifting frequency.