For DVDs: Walmart still sells a USB reader/burner for $30. Also I'd bet something will be able to read recordable disks in the future even without drives. Maybe a super super high resolution (compared to now) picture can simply be used to get the data from it visually in 30-40 years.
I'm hoping a few years down the road we'll have a greaseweazel equivalent for optical drives.