You could make a mean espresso machine out of a 2.0L horizontally opposed engine. I mean, seriously.
1 - Mount a torque wrench on the crank. Calculate how much hand-pulled torque is required to generate 9bar pressure for a good pull.
2 - Get an E-61 grouphead. Ebay, EspressoParts.com, etc. -- mount said grouphead on the exhaust valve, such that when you pull on the torque wrench, water from inside the cylinder is pushed into the grouphead.
3 - Plumb a reservoir into the intake valve, such that when you pull the torque wrench back the other direction, you suck water into the cylinder.
4 - Temperature control. Fill the oil sump with water. Rig a pump to circulate hot water through the oil system. Use a cheaply available digital propcon to maintain the water temperature stable at 95C. The engine should have enough mass to maintain temperature quite well through the process of pulling a 25sec 56ml doppio.
5 - If particularly motivated, mount a second E-61 grouphead on the opposite side. That way, while you're pulling shots out of the left side, the right side is intaking cold fresh water, heating it to 95C, and prepping for the brew process. Too easy.
6 - Mount on a nice oak stand, keep in garage. The wife would never let you keep a flat-6 Porsche espresso machine on the kitchen counter.