It depends. If it's controlled track, trains are usually detected by shorting out the rails, which carry anything from 12 to 110 Volts. Alternatively, when axle counters are used, no current will be present. It's also how coded cab signals work in the territories that use it.