No, I am not sure about the source codes. Based on the theory, I think that the substructure analysis is nothing else than manipulating the local-global stiffness matrixes. For sure, having the source code can save your time. Look at the educational open source FEA codes. Because, I don’t think any commercial FE code give you this source.
Good luck,
AAY