Atomic hydrogen in IllustrisTNG galaxies: The impact of environment parallelled with local 21-cm surveys