A good engineering text book on the thermodynamics of reciprocating steam engines is Reed's Heat and and Heat Engines for Engineers, by William Embleton. It covers thermodynamics in general and has an extensive chapter on steam engines, another on turbines, another on fridge work, boilers etc...