I've been involved in heart transplantation operations. The way the heart is removed is first to expose it by making a skin incision over the sternum (breastbone), then sawing the sternum in half (vertically, from top to bottom) with an electrical saw, and then inserting an instrument called a "chest spreader" between the edges of the breastbone. A hand crank then spreads the chest cavity open (the ribs are quite flexible and bend). The heart itself is removed by cutting into the pericardium (the sac that contains the heart), then cross-clamping the aorta and the pulmonary artery (the great vessels that come out of the top of the heart) and the vena cavae (the vessels that enter the back of the heart), and cutting outside the clamps to remove the heart.
You could google an anatomy picture to see where these vessels are.