1. You're 17. It's totally understandable at that age to be antisocial, dorky and pessimistic, simply because you have no perspective on life after boarding school.
2. As a lifelong pattern of behavior, this isn't gonna work. There's a reason having close friends, relationships, parties, etc. are so popular: they increase your quality of life, even if they are hard for we introverts to deal with sometimes.
3. You're missing a clear opportunity to maximize your time. If you're already at a party, sitting there wishing it were over is pretty much the worst thing you could be doing (except passing out). Why not at least attempt to have some fun? There are probably people who share some of your interests, at the very least.
4. Don't be worried that you haven't had any relationships yet. Not only are you rather young, but your pool of available girls is rather small.