Open the Mac App Store, search for OS X 10.9 Mavericks and attempt to install it. If your Mac doesn't support it, you'll see a message indicating this. If that happens, then your Mac doesn't support 10.8 either.