Often Engineering courses teach a range of engineering disciplines in the first year and allow specialisms later. You should probably have looked into that before you applied, but never mind.
Can you make an appointment with your supervisor/tutor to discuss things?
In your OP you say that they're teaching you computer science. A degree in electronics will always involve some computer science type courses... were you just expecting a hardware type course? Because i'm pretty sure they don't exist. Programming and computers are an integral part of electronics.
But again, i'm sure that in later years you will be able to choose non-software/computing courses and focus on hardware or comms or whatever your interest is in.
Obv it's up to you if you want to leave uni. But if you're doing it on the basis that the course isn't what you expected then i suggest that you probably didn't do enough research before you applied. I wouldn't make the same mistake again in not doing enough research before you leave.
Speak to lecturers and students in higher years to find out what later courses involve. And make sure, if you have option choices, that you look into what later modules have pre-requisites. For example, i didn't take a "Control" module option in year 2 and this meant that i couldn't take additional modules in "Control", "Further control" and "Flight Control" in year 3, my options too were limited in year 4.
If i'd taken that one control course i could have taken options that i preferred later, and wouldn't have had to take a module in management that i hated. It's all about research. None of us do enough... but if you do, then you can make your decision based on something solid and not assumptions.
Ugh sorry... went on a bit there... and it might have been a bit patronising. So sorry. But i can't be bothered to re-write it right now...