We show that a 3-qubit system as studied for quantum information purposes can alternatively be used as a thermodynamic machine when externally driven in finite time and interfaced between two split baths. The spins are arranged in a chain where the working spin in the middle exercises Carnot cycles the area of which defines the exchanged work. The cycle orientation (sign of the exchanged work) flips as the difference of bath temperatures goes through a critical value.