Number 6657024 is the Bobcat part number. 23 92 is build date code of the motor (23rd week of 1992). 17397 & 17384 are the serial number of each motor. I suspect these are Eaton motors but have no idea what model or series they are.
Water running out when motor was removed means you have substantial water in the chain case. It should be drained and cleaned out. The drain is at the rear center of the chain case, under the machine. Crawl under and right where the flat bottom of the chain case meets with the frame under the engine, where it starts to taper up towards the back there is an access plate to remove. In the access are 2 rubber plugs with metal expander pin in them. One plug is for the chain case (faces forward) and other is the fuel tank (faces to rear). Pull that plug and drain the chain case. Be prepared with large volume containers to catch the fluid. Normally there is 8 gallon hydraulic fluid, but with addition of water that chain case can easily hold over 25 gl. without pushing it out the top vent.
Since fuid/water came out of the chain case with motor off it means the motor carrier seals are shot, need to replace them as well. Seals can be replaced without taking the carrier off, drill small holes 180 degrees from each other in the seal and screw a sheet metal screw in part way to use the screws to pull the seals.
From what you have given me here is list of part items you will need:
2 motor seal kits
2 carrier seals
8 gallon hydraulic fluid (minimum to refill chain case)
2 motor case drain filters (any time you repair drive motors or have carrier seals blown, replace these filters).