I don't know i never tried it, but i feel you could extract something in the .MCP, .MCW or .MCS of an existing MPLAB project. Sure you'll need to build those file first but... doable imho.

There's probably a better solution....