Domain name in WinNT/2000

Hello,

My task is to secure the program to make it working in the specified Windows
NT domain only.
The question is: how can I get the name of domain my computer is logged to
(using Delphi 6.0 or 5.0).

Best regards,
Przemyslaw Czaplisski