1) grep for autofocus in the lua_fix branch, selftest.c and lua_lens.c (not sure if it works well on 500D)
2) lens_info.focus_distance (on lenses that report it; usually very coarse)
on focus-by-wire lenses,
lens_info.focus_pos is also updated in MF (lua_fix branch)
3) try Trap Focus or silent pics in "Best Shots" mode; they use a focus indicator from Canon code
Magic Zoom's focus confirmation uses the same indicator
caveat: on models older than 60D, this indicator is not computed for every LV frame
and unfortunately it won't work at all on 500D:
http://builds.magiclantern.fm/features.html - CONFIG_LV_FOCUS_INFO
Difficulty for a fully automatic AF in video mode, compared to fully automatic AE, on a camera without phase sensors (aka
focus pixels or pink dots):

(not joking)
There was a feature called Movie AF in very old versions, that also did something similar to your follow focus idea, but I've discontinued it because it was too unreliable and hard to maintain. You may dig through archives and bring it back if you find it useful.