Moving into ancient apartment, two-prong outlets
First yes you can connect a laptop into a two prong outlet. Is it Safe? That's anybody's guess. 

My easiest answer without out rewiring the apartment is to purchase a small UPS system for your laptop. KVA size depends on your computer equipment demands. It has no direct electrical connection to the supply side power. In other words it creates it's own power. This keeps you power supply clean and constant and it protects from surges and sages and requires no electrical knowledge.

If you would like to provide a little more protection. You could ground the source side power and bond the case (should be already done within the unit).

Good Luck