In a race where both pawns promote, the side whose new queen arrives with check (or attacks the enemy queening square) wins the resulting ending.
White's h-pawn on h5 and Black's a-pawn on a4 each need three moves to promote, and it is White to move. Both sides will get a queen, so counting moves alone is not enough: you must look at what happens on the queening squares.