Is there any way to get any variable (like name) from another client in a multiplayer game?

Actually I want to get the name (text variable) from another client when a Line Trace from my player hit that client. Is there any way to do that?