I have a degree in electrical engineering, but I’ve always had an affinity/passion for software. My first job out of college was to design database-driven web applications, and I transitioned to doing control systems/electrical engineering duties on top of that after the first couple of months. Even after 5 ish years, I’m still doing a lot of software development and engineering. I guess my point is that just because you have a specific degree doesn’t necessarily lock you in to a specific line of work, so I’d encourage you not to base your decision on that.
With regards to EE vs CPE, it’s been my experience that a lot of these classes cross over. At my university, all electrical engineers had to learn some basic level of chip/microprocessor design and programming concepts; The biggest difference was that CPE was more programming/operating systems-heavy. Not all universities are like that, but I’m glad mine was, since I ended up taking the computer engineering PE years after. Most universities should offer electives in the other field if you decide to go one way or another.
As a pre-engineering student, I would suggest looking online for some basic concepts and seeing if they interest you. There’s a lot of resources out there for processor design, for example, and CPE will have a lot of that. If you’re really interested in the subject, I used a book by David Money Harris and Sarah Harris called “Digital Design and Computer Architecture” on my PE exam, which is inexpensive on amazon and does a great job of explaining pertinent computer engineering concepts. For electrical engineering, take a glance at transistor concepts and maybe some power systems design. These subjects are daunting but they make up the core of EE; maybe you’ll find the subject interesting!
One last thing: if you are considering a PE, you should be aware that most computer engineers do not feel the need to be licensed, whereas an increasing number of electrical engineers are seeing value in it.
Good luck to you!