how to identify a multisite installation

The most obvious choice would be the is_multisite() conditional template tag.

Used as such:

if ( is_multisite() ) {
    // Multisite is enabled;
    // do something
}