Hi there, Im 4 months off of being 17, so close to your age. My hair line is close to yours however not as far back, i also have pretty bad thinning over the top of my head. I would suggest you see a dermatologist straight away as it will only get worse, It isn't that uncommon for hairloss to start off at this age (i had to find out the hard way). Depending on your body development you could be fine to take finasteride at this age, I started it a bit over a week ago under the discretion and supervision of my dermatologist who deemed it to be fine for me based on my development. Go see a dermatologist and an endocrinologist and they can help you out, also it wont hurt to use nizoral 2% shampoo 2 x a week.
Hope i have helped