bell housings will go off of a s.a.e. size, but that might be the least of your worries.
I just went through the process of finding a replacement engine for my skid steer, which needed a Deere 4024T. Seems easy enough, but caveat emptor, my friend. I had every TD&H trying to sell me their 4024, and found out (by my own pre-purchase research, fortunately), that there are multiple versions, and that most wont simply bolt up, and some that are constant speed setups for generators that only turn 1800 rpm. Alternator brackets, flywheels, starters, flywheels, oil pan sizes, you name it, it can all be different The closest I came to finding a complete 4024TT002 was a 4024tf270, which will need my old engines oil fill tube, dipstick, and dipstick tube.
That said, and with your time constraints, I would contact a reputable engine supplier, or John Deere directly, with a serial number directly off of the engine, and have it in hand and test ran before even considering the switchover