You can do this in two ways: on the scoreboard (the TAB key on your keyboard) your current ping is shown next to your name. The second way is to use the net_graph 1 command, which will display your ping.