STEAM ID upon disconnect

I’ve seen a few servers that when players disconnect, it says “[Playername] has disconnected [STEAM ID: 0:0:000000]” This could be very useful in the case of banning people who avoid it. Does anyone know how to do this?