You'll have to do what I did: use a cloth tape and measure.
I then went to the moto shop and just used their off the shelf modular tubing and fittings (can't remember the brand, but can picture it in my head) to make my hose. It's been through three track days and five years, so yes it works. I also bypassed the splitter on the triple so it's a straight shot from the pump to the caliper.
Not as necessary on the rear brake but I have one just because I got a smoking deal on it. It will make the rear brake more touchy so keep that in mind.