What is the binary format of the OrCAD .OLB files?
Libraries can be exported to and imported from xml. With this and some Java coding should get you what you want without knowing the format. You could also reverse engineer the hex format from the xml. For large jobs, it's probably worth purchasing CIS. OLBs are very difficult to deal with in Capture.