If it is your heritage language, then your skill may be higher than high school year 2 courses, so you may be able to take a higher level than that.
If it is closely related to your heritage language (e.g. your heritage language is Portuguese or Italian, but your school offers Spanish), it is at least theoretically possible that you could take year 2 without taking year 1.
Otherwise, if you are highly motivated, you could try learning a language taught at your high school over the summer (using any of various language learning methods, not necessarily an official class) to get to the point of being able to enter your high school’s year 2 or 3 course.
Others may be able to help you better if you list the following:
- Your heritage language and how well you listen, speak, read, and write it.
- What languages your school offers, and to what levels.
- What languages local colleges offer, and to what levels.