The Wiki at http://wiki.logos.com/COM_API_Bible_Book_Abbreviations gives an example as below.
However, as of 4.0d Beta 4, none of the objects have a method of GetBooks(), and the example can not work as written.
[Copy from Wiki]
The list above was created with the following C# 4 code:
dynamic books = app.DataTypes.GetDataType("Bible").Details.GetBooks();
foreach (dynamic book in books)
Console.WriteLine("| {0} | {1} |", book.Render(), book.Details.Book);