A traditional HDD should be no warmer than 40°C. If it is then the case fan is not positioned/working properly. An SSD can get quite hot with the constant read-write operation. However, that should not exceed 60° C. Case ventilation, water cooling, and air conditioning are options if the temperature is too high.