A simple way would be to use the setpoint that is closest to the actual temperature. This has problems that if the deadband is low, the current setpoint can toggle between heat and cool setpoint.
A more advanced solution, and more accurate, would be to see what was used last in the HVAC and...