Two-loop computation of a running coupling in lattice Yang-Mills theory