It also tracks LOCs, but people learned that it is a bad metric. Velocity is basically the same, just with advanced stupidity.
But no, I have never used an environment where velocity is tracked. Of course my source control does provide data how often and what people do commit and you can use that data to create a meaningless number.
Some systems like Jira tracks something like Sprint velocity. Not much of a fan here either, but if used correctly, it is oriented towards a goal. That is the metric you should really track to see if you are still on course.
Don't most version-control systems support/automate this?