You might find the answer to your question here:
You will need to test, but this seems to do it:
Of course, my code will actually solve the problem, not just detect the type of the clipboard.
For more information, see the wiki Searching the Forum for Answers section.