Growth accounting using CES functions
First, remember that a Cobb-Douglas production function is a special case of a CES production function (see e.g. here).   

Secondly, there are critical assumptions that have to be met when one tries to determine TFP (or the "Solow residual" as it is often called). The most important one is perfect competition.
Furthermore constant returns to scale. Without those the factor shares (capital, labor over total output) and output elasticities are not identical.
Thus the standard "growth account exercise" within the Solow-Swan framework is not possible with a general CES function.