Mage::app()->getStore()->getCode();
This returns store code, e.g. 'en' for a storefront that is setup for English and called 'en', and not the numerical id.