Were driveshafts painted or raw from factory?

I dont think they were painted. Some vehicles built nowadays are also bare steel (rust). Not sure why they choose not to paint the drive shaft.