calibre can use multiple libraries. So there is no one folder. If you want to know the path to the current (aka last used) library, just use
calibredb list -f formats
which assuming the library is not empty will give you the paths to all the ebook files in the current library, from which it is trivial to get the path of the library folder itself.
|