connecting sound card to arduino to detect very low amplitude sound

My guess, is why your Prof. asks to design a project bases on 24-bit cards, it's just "exploit" likely
better SNR of the cards preamplifier and ADC, rather than their wider dynamic range. Even it would make sense for submarine sonar design, complexity and cost of the project became too high for simple "train warning" system. I'm not sure, if it possible with arduino at all.