Head/Vision Tracking
It doesn't really look like it is actually being tracked.  It looks like a manual overlay of a line on to it based on the head movement.  It really doesn't look particularly accurate either from what I can tell.  Something like Adobe After Effects (paid) or Black Magic's Fusion (free) can easily be used to accomplish this, though they do both have a learning curve.