I've take the Nyc to Boston route before on megabus. No immigration checks at any time. Megabus itself is pretty lax about checking id as long as the ticket itself is valid.
Be sure to avoid the buses that go to Toronto though for obvious reasons. That's only an issue for routes going to philly though.
Enjoy your journey!