$objectManager = \Magento\Framework\App\ObjectManager::getInstance();
$checkoutSession = $objectManager->get('Magento\Checkout\Model\Session');
foreach($checkoutSession->getQuote()->getItems() as $item) {
/* @var \Magento\Quote\Model\Quote\Item $item */
echo $item->getProduct()->getName().'<br/>';
}