Normally overheating protection is built into the BIOS, you will need to access the bios to set temperature levels for warnings or shutdown, you may want to get the laptop serviced, could be that the thermal compound has failed or that the heatsinks are clogged.