You can get a list of currently installed packages (excluding built in packages) from the variable package-activated-list
. To automatically install them on startup, see this question: how to automatically install emacs packages by specifying a list of package names?
More specifically, if you do C-h v package-activated-list, copy the value shown, and insert it as the value of prelude-packages
, emacs will automatically ensure those packages are installed on start up.