Commands to display current settings, not commands that change any settings

Show the current session

tmux display-message -p '#S'

Show the TTY of each client that is connected to the current session

tmux list-clients -F '#{client_tty}' -t "$(tmux display-message -p '#S')"