Philips Hue integration with STK

I am working on a project for school that integrates Philips Hue smart light bulbs into STK. The objective of this project is to use audio-to-visual replacement to allow players whom have hearing disabilities an equal playing advantage. IE: if there is a audio warning for being targeted by a weapon there would also be a visual cue via the smart bulbs. Right now I am working on a way to measure the distance of one kart to another and align that value with the brightness of a bulb (the closer the opponent the brighter the bulb). For reference I have very little experience in game programming and even less in c++, but I am wondering if anyone who has experience with this code base can tell me if the code already exists in the project to measure the distance between the karts or if I will have to write this logic myself.