If you receive it as a gift, new, get the proof of purchase from the gifter and register the warranty under your name.
You CANNOT register the warranty on a used product.