Welcome, sir.
There is no way to sugarcoat this. If you are going bald, then you are going to have to face the reality of your hair going away.
What you cannot do, however, is allow your hairline to get the better of you. Too many young men get their egos and self-worth tangled up in their hair. You probably are much more aware of what you think are your physical imperfections than anyone who looks at you.
If you are 17 and just noticing that your hair is receding, then you probably have a few years before it becomes noticeable to anyone else. I would not make any decision about what to do just yet. You have plenty of time to weigh your options.