Apple's software won't let you do that, you'll need something third-party. If you're lucky, the device will be old enough to jailbreak to get full access to the file system.
I believe that's incorrect: https://support.apple.com/guide/itunes/transfer-files-itns32...
Also see: https://www.makeuseof.com/tag/transfer-music-ipod-computer/