Probing Hot Gas Components of the Circumgalactic Medium in Cosmological Simulations with the Thermal Sunyaev–Zel’dovich Effect