Algorithm to translate a deterministic Büchi automaton to LTL (when possible)
You may find the algorithm in Diekert and Gastin's paper, Section 12. It works for both NBW and DBW (provided that you have the $\omega$-expression), and this can be decided in polynomial time.