Getting Media Upload Folder

Hello, On my website there is two upload pages. The content is separated into different folders via rtmedia_filter_upload_dir.

Is there a way to make an ajax request with the media’s ID, that will return its upload directory?

If you can think of a better way to have two upload pages and have the uploads kept separate I would love to here.

Thanks for the help, Orrin