If just 2 years are left.
Then don't bother dropping out!
Life is easier with a degree. It's not necessary for success tho.
Even if you pass with medium or low grades, it would be quite ok.
It's worth dropping out when there is better opportunity in front of you for example if you are working on a project which you feel is guaranteed hit.
I hated school when i was there now when i revist the content, it seems soo easy!
I was simply lacking motivation back then. When i worked on my own projects, i learned faster and did Ok based on gained knowledge.
You are not enjoying school because you don't see how it's going to help you. I also didn't see.
All you need is a project which motivates you and then the real learning will start!