Is it possible to detect if someone uses TeamViewer to help other players from the same team while they are afk?
There is no way it can be done, because TeamViewer only allows you to connect to a computer and display its screen. You can't tell whether someone is using the computer or gets an assistance through TeamViewer.