Many lenders offer this with a first mortgage closing. Some lenders cannot or will not offer HELOCS or fixed seconds any longer. Your bigger banks will do it if you qualify for it. Everyone's really tightened up on these second leins, so you have to be pretty clean to get one these days.
I have understood it from a lender that I use that you can not pull out equity at the time of a purchase. However, later you could pull out equity in a few months. Again though always check with your lender. Mortgage programs change all the time!
I hope this information helps! Best Wishes!