Take a wheel bolt out, measure it and add 10mm and 16mm respectively?
Think on a standard bolt its 29mm thread length with a couple of mil allowance, should be 6 full turns of thread, so you might get away with 42mm length thread for both front and rear.