Prospects for a measurement of the W boson mass in the all-jets final state at hadron colliders