How to pass a vehicle's speed to another following vehicle?

Hello, a green hand here. I am trying to test Cooperative Adaptive Cruise Control systems in CARLA, and the magic is to pass a vehicle’s speed to a following one. So any method is recommended to identify the leading vehicle and get access to its speed? Thanks!