This is an old Stationary steam engine that was powering the Minting Machines via a Line Shaft (top-left of the photo).
It is located in the Casa de la Moneda (Potosí, Bolivia), the old Spanish mint where the silver from the mines of Potosí was transformed into coins.
The original minting machines are preserved in a near-perfect state. The oldest machines were made of huge wooden gears and powered by slaves or animals (depending on availability). Later they used steam-powered machines, but luckily they kept the old machines untouched (just in case!). This huge building is now a national museum.
For more photos and information, read the album description.