you can find out the browser by using the variable $_SERVER['HTTP_USER_AGENT']. to detect if flash is installed, you will need to use javascript.
also be aware, some browsers dont send user agents and some browsers or programs have to option of setting it to whatever the user wants.