There are two "names" that may be used. These functions will tell you what they are:
They can be "merge fields" using the Insert menu "Other symbol" in Layout mode and:
So if you place this text:
the correct value will be shown in Browse mode. You just have to decide which of the values is the one you need.
In addition to what beverly has said - are you wanting it to appear as a custom dialog or on the layout? If as a custom dialog, you will need to create a startup script and in the File menu > File Options > Script Triggers - set the script to run OnFirstWindowOpen. Grab the Names and put them into the custom dialog script step.