Turn your wheel so that your valve is towards the ground and behind the forks.
Take a tape measure and hang it off the end of the valve.
Measure to a point on the end of your bars(there’ll be a degree of guesstimating)
Measure to the same spot on the other end of the bar.
Adjust until the same (more or less)
Having said that, I’ve never actually done that. I just eye the front edge of the bar off the fronts of the fork legs and get on with it, but I imagine that would work, much like measuring a rectangular area for squareness…