If you can see the gearbox easily it's exposed.
Depends on the prototype. Some high boiler models build the gearbox on the end axle, so it is mostly hidden in the firebox, motor is mounted on the boiler centre line. Some use a belt drive, same location. The gearbox is some times part of the cast mainframe.