If your system supports it, you can access the current terminal directly with /dev/tty
:
echo hello world | tee /dev/tty | awk '{print $2, $1}'
(The file is available in Linux and Mac OS X, at any rate.)
The tty
command returns the name of the file connected to standard input, which may not necessarily be a terminal. In your pipe, it's the "file" associated with the standard output of the preceding command.