Most schools have ways to take undergraduate and graduate classes without matriculating. You should search for "non-matriculating" or "non-degree" and the college you're interested in. For non-degree students, some schools will have restrictions on when you can register, so it might be hard to get into the classes you want.