Hi! As already asked, what vehicle? But I'm also wondering, if the shafts are still installed then I would guess you haven't stripped it down at all yet? If so then how do you know the planet (I would call them "Bevel"?) gears are cracked? I'm not aware of this being a common or known fault?
If it's something like a Punto/Panda then they are held in by "snap" rings. All you need is a tyre lever or large robust screwdriver. Put the tip under the edge of the inner driveshaft joint and lever against the gearbox casing. Usually a quick jerk works better than a slow increase in pressure. I would strongly recommend a Haynes manual (or similar) as there are often subtle differences. For instance on my boy's Punto they recommend "snapping" the Near Side (NS) joint out in the way detailed above, but using an exhaust clamp as a type of puller/press to remove the Off Side (OS) one. (haven't had to do an OS one yet) The Panda, if my memory isn't playing tricks on me, (not going out in the rain to look under "Becky") has a support bearing on the OS shaft which complicates things a little. The Skoda and SEAT vehicles we have in the family have an inner joint which is bolted together with long "Allen" bolts. The joint is first dismantled - messy grease - which then lets you access the cover plug under which is the bolt which holds the flange to the diff output shaft. Great fun if you don't know there is a quite strong spring behind it!
So, buy a manual. Have a look around our forum, someone has probably covered this subject somewhere in here. On the other hand, if the gears are really cracked/broken into pieces, all bets are off as the snap rings could be jammed or even bits of gear wedged in. If all else fails, you can usually drop a 'box out with the shafts still fitted after freeing the CV's from the hubs. (done this more than once - good way to avoid oil all over the place!) I haven't had to do this on any of our fiats yet but it looks possible. Then you could maybe dismantle the casing on the old box and work at releasing the shafts internally?
good luck with it and do let sus know how you get on, won't you.
Jock