Go to the Settings app. Then search for Network properties
. In the UX the domain is shown as Network name
assuming the category is domain
.
You didn't specify what type of domain you wanted. If you want the domain your user account is under then the command prompt's USERNAME
value tells you that.
SET USERDOMAIN