Thermodynamics of finite magnetic two-level systems