There's no direct way of doing this. The client doesn't send information about plugins in a standard document request. You could use javascript to create a link or a hidden variable in a form that sends information about plugins, like flash, back to a php page.