You need to go to System > Manage Stores and click on the store name in the right-hand column. Then check the URL for the store_id element - this is your store ID on Magento.