I really dislike companies that does this. Fortunately most CS only seems to care whether the product still lies within the warranty period rather than who is the current owner. A receipt is usually more than enough, and I don't remember many stores actually printing the buyer's name on it anyway. If they give you hell for it, claim that it is a gift.
As far as headphones goes, Sennheiser's warranty is transferable, but not Shure, Audeo and Ultimate Ears.