Can I test whether there are two external monitors or just 1?

Just a suggestion. I've already done this. See Desktop Images Macros.