There are many ways to learn to code these days. From coding bootcamps like Flatiron School to online courses to totally free beginner resources. The best way to learn to code depends on many factors, but the most important one is you. See what course is best for you.
On the new laptop, on the file manager, type: \\computer-name , where "computer-name" is the name of the desktop with the printer (you can find the name by right clicking on My Computer and selecting Properties).
You should be able to see the printer this way.
PS: workgroups are pretty much deprecated, starting with Windows 7.
HTH,
Dan