What you're looking for is a license manager. There's several available, look for them in Google
]. One of the most popular license managers is FlexNet Publisher (formerly FlexLM)
As Christian just mentioned however, you do have to pay for most license managers and protection is never guaranteed (and usually not super hard to get around).