both.
Get a digital thermometer from radioshack or walmart. Stick the probe under the substrate, right over the heater. At the absolute hottest spot your snake would be able to get to. Then place the thermometer on the cool side of the tank. It will show you both what the temp is above the heat mat, and the air temp.