They'll use the same basic tracking that's used for any of these kinds of situations, from automatic targeting in planes to robotic arms that catch things. It's not a hard problem and it's really fast to solve. There are also adaptive approaches; the buzz word in that area is Kalman filtering.