You can check if a #Temporary exists in the database with the following command.
SELECT * FROM tempdb.dbo.sysobjects WHERE name LIKE '#%'
e.g.
If you create a temporary table with the name #Customer you can check for it using:
SELECT * FROM tempdb.dbo.sysobjects WHERE name LIKE '#Customer__%'