Information about received power and SNR is relayed over the 5G data link to and from the tower, and beamforming happens that way. As a result, the tower doesn't need to know where you are at all. In fact, with higher frequencies, you often get weird bouncy paths for 5G radio signals so the "beam" that gets formed can be a rather odd shape while being optimal.