Can a plumbing drain and an electric wire be run in the same 4" sleeve between floors. Not sure of code requirements.
I don't know of a requirement to separate them & haven't had an Inspector ever say anything, they always cross paths & run the same path somewhere. Of course, separate would be best for everything.
The only possible Code that might be violated is a floor penetration that isn't fire blocked & sealed. Depends if it was done prior to that part of The Code.
You can stuff (tightly pack) it with Rockwool or Mineral-Wool Insulation to address that for big gaps. Fire Caulk burns, but The Code has it as it's blocking of choice for small gaps or an overall smear seal of everything...the thicker the better with that stuff.