you can get min and max price from any collection
For any collection.
$maxPrice = $porductCollection->getMaxPrice();
$minPrice = $porductCollection->getMinPrice();
Layer collection.Follow Magento\Catalog\Model\Layer\Filter\AbstractFilter.php
$this->getLayer()->getProductCollection()->getMaxPrice();
$this->getLayer()->getProductCollection()->getMinPrice();