It gets it from the wheel speed sensors. It used to be only one sensor, but with the speed of the controllers today they might be averaging all 4 sensors for the spedo. An easy way to check would be disconnect one sensor at a time until the spedo drops out. Just remember the ABS and CEL will probably come on for a while. Most likely would be left front, followed by right front.