Modem detection