No there is no such thing.
The only way you could do it is by tracingrouting the user's IP, and see if there is some HOP named 'modem2345.bla.com', but ADSL and DSL are also modems, and some dialup lines are not called 'modem' or 'dialup' at all.
The best method is to let the user choose.
After all, even peope with high-speed lines may want the light-version. (heavy graphics is nearly always irritating)