Welcome to Justanswer.com, my name is ***** ***** I will do my best to assist you.
As far as getting the cd out.. That may require removing the cd drive. Lets cover getting the printer installed first.
You can download the printer driver from this page
There are a ton to choose from, but this is the one you want
Print Driver (Driver) ver.V3.00.05.01:01 - Win XP/2003/2008/2012/Vista/Win 7/Win 8/Win 8.1/Win 10(32,64bit) (MULTI LANGUAGE, 42.26 MB)
Sep 18, 2015
Once downloaded, open the file and install it.. And that will install the samsung printer. If you get stuck or run into any issues, let me know.
As far as the stuck cd.. Without knowing the specific model of Hp all in one you have, here is a general support document for all in ones that shows how to use the manual release hole, and also remove the back plate of the machine if needed, so you can get to the cd drive.
I strive to provide great service, and greatly appreciate a rating of excellent ( 5 stars ) selected and submitted below this answer or at the top right of the screen. I always answer follow up questions.
Senior Technician and Network Switching Systems Operator / Maintainer.