I have a blog, lets say example.com and another blog installed in example.com/np which is not multisite but a different WordPress installation.
example.com
example.com/np
You can use a Wordpress function to detect if you're on the home page:
is_home
http://codex.wordpress.org/Function_Reference/is_home