Hostess Brands Inc. is nearing a deal to sell its Twinkie brand and other cakes to private-equity firms Apollo Global Management LLC APO +0.05%and C. Dean Metropoulos & Co. for more than $400 million, said people familiar with the discussions.