I guess one option would be a two-dimensional grid of beams of some kind of light, probably lasers pointing at photodetectors, with the beams in each axis spaced closer together than the diameter of the ball. You would need some pretty fast acquisition logic and some clever calculations if you wanted to work out any of the dynamic parameters such as position, direction and speed, but just detecting the ball wouldn't be difficult.