Turn off the thermostat and the HVAC unit. Find the HVAC control board. The thermostat wires connect to the heating and cooling system at this board. Most likely, the wires will be marked by color. Also, they should have labels.