First you will have to make sure that the domain you want is available - using something called a WHOIS lookup at sites like Register.com or Whois Source you can make sure the domain you want is available for registration.
Afterwards, you simply need to visit a registration site such as http://hostseba.com/domainchecker.php to purchase your domain name.