The four lines going out are your cylinders, one each extend and retract for your boom and curl = 4.
The 3 remaining will be your pressure, power beyond, and tank return (fluid dump - not pressurized).
The easiest way to figure out which is your tank return, is to find a line that has some other lines "Tee'd" into it where your lines come out of the rear axle. All of these are ganged together to share the same return into the case since they're not under pressure.
This will leave you with 2 unidentified lines, both of them are going to be pressurized. One will come out of the tractors hydraulic manifold and go straight to the valve, the other will go from the valve to your rear remotes SCV valve. The one going to the remotes is your Power Beyond, which means the other one is your high pressure line straight from the pump. JD plumbs the loader valve first in the series in every tractor schematic I've seen of theirs. You'll want to stick your other valve on the Power Beyond line anyways, so use that one. Make sure it's an open center valve, has a power beyond port (that's where you'll connect the power input line to your rear SCV valve), and then add another "T" to the return line to connect the tank return port off the new thumb valve - hook up your new remotes and you'll be good to go.