Here is code for get current store in magento 2: