title: Is there a way to discern if a drive is a dvd/cd/blueray drive without a disc inside?
body: <p>After looking at this question here: <a href="https://stackoverflow.com/questions/7034216/get-all-dvd-drives-in-java">Get all DVD drives in Java</a></p>
  
  <p>It seems to me that with JAVA 7 there is a way to discern between hard drives and dvd/cd drives when there is cd/dvd inside the drive. But that one method fails if the drive is empty.</p>
  
  <p>My question is: Is there now 4 years later a method to discern which of the drives are hard drives and which are cd/dvd/blueray drives even if those drives have no cd/dvd/blueray inside?</p>
  
  <p>Edit:
  The target OS for this is Linux </p>