Holding TAB temporarily displays player heads. Otherwise there is an option in the settings to always display player heads. I think it's called "Lock Player Heads" or something similar.
It's based on actual teams feature in Minecraft. So you need to use commands on your server/world to set teams and team colours.