You may want to have a chat with your boss, not a long one, not a deep one, but make your boss aware of what you have written here: You are working 40 hours per week, but spending 25 of those hours in meetings. Your boss should be aware that you are only able to provide 15 hours per week of programming work, and the other 25 hours are meeting-listening work. Do not push the issue, do not force the issue; simply make your boss aware of the issue. It then becomes your boss's responsibility to determine is 15 hours per week of programming from you is good enough, or if not, then it is his responsibility (not yours!) to make you not be in meetings for 25 hours per week. This is what it means to be a manager, you have to manage things. If your boss is not happy with you only providing 15 hours per week of programming work, but he won't do anything to free up your schedule to get you to do less meeting-listening work and more programming work despite you notifying him of the issue, and you find yourself terminated from the company, this would be grounds under which I would seriously consider speaking to a lawyer (and by that I mean, you definitely should speak to a lawyer if this were to happen to you). However, one of the first questions I would ask if I was a judge in such a case (I am not a legal professional of any sort) would be: "Did you make your boss aware that this was even an issue in the first place, or were you negligent in that you allowed this to happen and tried to "skate by" without anyone noticing?" You do not want to give the wrong answer to this question, so cover your ass by alerting your boss to the situation now.
If you feel like being a meeting-listener is not conducive to your own goals, then you may want to find a job where your role is programming, not meeting-listening. You may want to mention this to your boss, that you are unhappy as a meeting-listener and you would like to be a programmer. It then becomes your boss's responsibility to make you happy, because if you are not happy at this company, then you can (and should!) find a company where you are happy. Which is a long way of saying: Make your boss aware that you are not happy as a meeting-listener, and if he doesn't do anything about it, then find another job.