The lattice spacing can be obtained in a procedure usually referred to as scale setting for which one requires a physical quantity computed on the lattice. Take as an example the mass of the proton $am_P$ computed at a given value of the bare gauge coupling $g_0^2$ from the corresponding two-point correlation function. Given knowledge of the experimental value of the proton mass $m_P^{phys}$, the value of the lattice spacing can now be obtained via $$a(g_0^2)=\frac{am_P(g_0^2)}{m_P^{phys}}\,.$$ A result in physical unitsfm can then be directly obtainedderived using $\hbar c=197.3269788(12)$ MeV fm. This scale setting is of course only valid up to lattice artifacts and depends on the quantity used to set the scale.
In practice people usually do not use the proton mass but rather the $\Omega$ or $\Xi$ masses or the decay constants of the pion and/or kaon. Intermediate scales like $r_0$ or $t_0$ which do not have a direct physical counterpart but can be easily and precisely computed on the lattice are also very common.